Hammersley–Clifford theorem